//
//  CollectionViewCell.m
//  LiWuShuo
//
//  Created by 苗钧豪 on 16/8/2.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "CollectionViewCell.h"
#define WIDTH self.bounds.size.width
#define HEIGHT self.bounds.size.height
@implementation CollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imgview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH / 2, HEIGHT)];
        _imgview.backgroundColor = [UIColor yellowColor];
        [self addSubview:_imgview];
        _label1 = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 3)];
        _label1.text = @"各种题目";
        [self addSubview:_label1];
        _label2 = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH / 2, HEIGHT / 3, WIDTH / 2, HEIGHT / 3)];
        _label2.text = @"更新到第几章";
        _label2.textColor = [UIColor grayColor];
        [self addSubview:_label2];
        _label3 = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH / 2, HEIGHT / 3 * 2, WIDTH / 2, HEIGHT / 3)];
        _label3.text = @"我也不知道这是啥";
        _label3.textColor = [UIColor grayColor];
        [self addSubview:_label3];
    }
    return self;
}
@end
